<template>
  <div>
      <van-field label="名称" v-model="form.name"/>
      <van-field label="测试地址" v-model="form.url"/>
      <select v-model="form.method">
          <option value="get">GET</option>
          <option value="post">POST</option>
          <option value="put">PUT</option>
          <option value="delete">DELETE</option>
      </select>
      <van-field label="请求参数" v-model="form.params"/>
      <van-field label="预期结果" v-model="form.result"/>
      <van-button @click="add">提交</van-button>
  </div>
</template>

<script>
export default {
    data(){
        return{
            form:{}
        }
    },
    methods:{
        add(){
            this.form.params = JSON.stringify()
            this.axios.post('sendMoney',this.form).then(res=>{})
        }
    }
}
</script>

<style>

</style>